<?php

namespace app\dao\system;

use app\dao\BaseDao;
use app\model\system\AppRouting;


/**
 * app页面路由
 * Class AppRoutingDao
 * @package app\dao\system
 */

class AppRoutingDao extends BaseDao
{
    /**
     * 设置模型
     * @return string
     */
    protected function setModel(): string
    {
        return AppRouting::class;
    }

    public function getSearch(array $where = [])
    {
        return $this->getModel()->when(isset($where['is_del']), function ($query) use ($where) {
            $query->where('is_del', $where['is_del']);
        });
    }
}